const Router = require('koa-router')
const { tool,getCunt,getOneList,addList,editList,deleteList } = require('../controller/tool.controller')
const router = new Router({prefix:'/tool'})
const { auth } = require("../middleware/admin.middleware")

router.get('/list',tool)
router.post('/all',auth,getCunt)
router.post('/add',auth,addList)
router.post('/edit',auth,editList)
router.post('/delete',auth,deleteList)
router.post('/detail',auth,getOneList)
module.exports = router